package dbexp.connection;

import java.util.HashMap;
import java.util.Map;

import dbexp.connection.model.ConnectionInfo;

public class Manager {
	private static Manager instance = new Manager();
	private final Map<ConnectionInfo, DbConnection> pool = new HashMap<ConnectionInfo, DbConnection>();

	private Manager() {
	}

	public DbConnection getConnection(final ConnectionInfo ci) {
		final DbConnection con = pool.get(ci);
		if (con == null) {

		}
		return con;
	}

	private DbConnection createConnection(final ConnectionInfo ci)
			throws PoolManagerException, DbStateException, DbAccessException {
		return (DbConnection) PoolManager.getInstance().getConnection(ci);
	}
}
